import { axios } from '@/utils/request'

export function selectPage(parameter) {
  return axios({
    url: '/coupon/bigWheel/selectList/' + parameter.pageNum + '/' + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function addOrUpdate(parameter) {
  return axios({
    url: '/coupon/bigWheel/addOrUpdate',
    method: 'post',
    data: parameter
  })
}



export function selectBigWheelDetailByBigWheelId(parameter) {
  return axios({
    url: '/coupon/bigWheel/selectBigWheelDetailByBigWheelId/'+parameter,
    method: 'get'
  })
}

export function saveBigWheelConfig(parameter) {
  return axios({
    url: '/pc/bigWheel/saveBigWheelConfig',
    method: 'post',
    data: parameter
  })
}


export function del(parameter) {
  return axios({
    url: '/coupon/bigWheel/delete/' + parameter,
    method: 'get'
  })
}

export function selectAll(parameter) {
  return axios({
    url: '/pc/bigWheel/selectAll',
    method: 'post',
    data: parameter
  })
}



export function updateStatus(parameter) {
  return axios({
    url: '/coupon/bigWheel/updateStatus',
    method: 'post',
    data: parameter
  })
}